<?php
	require_once("web_fns.php");
	$user_name = $_POST['user_name'];
	$user_id = $_POST['user_id'];
	$passwd = $_POST['passwd'];
	$company = $_POST['company'];
	$dealer_type = $_POST['dealer_type'];
	$address = $_POST['address'];
	$check_result = business_apply($admin_users,$dealer_info,$user_name,$user_id,$passwd,$company,$dealer_type,$address);
	switch($check_result) {
		//成功
		case "1":
			echo 1;
			break;
		//之前有未处理的订单
		case "2":
			echo 2;
			break;
		//手机验证码有误
		case "3":
			echo 3;
			break;
		//该手机号已注册
		case "4":
			echo 4;
			break;
		default:
			echo 0;
	}
?>